package com.lemon.domain;

import java.util.Date;
import java.util.List;

/**
 * 部门
 */
public class Department {

	private Long id;
	// 上级部门ID
	private Long superiorDepartmentId;
	// 上级部门
	private Department superiorDepartment;
	// 下级部门集合
	private List<Department> subDepartments;
	// 部门名称
	private String name;
	// 描述
	private String description;
	// 创建时间
	private Date createTime;
	// 修改时间
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSuperiorDepartmentId() {
		return superiorDepartmentId;
	}

	public void setSuperiorDepartmentId(Long superiorDepartmentId) {
		this.superiorDepartmentId = superiorDepartmentId;
	}

	public Department getSuperiorDepartment() {
		return superiorDepartment;
	}

	public void setSuperiorDepartment(Department superiorDepartment) {
		this.superiorDepartment = superiorDepartment;
	}

	public List<Department> getSubDepartments() {
		return subDepartments;
	}

	public void setSubDepartments(List<Department> subDepartments) {
		this.subDepartments = subDepartments;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", superiorDepartment=" + superiorDepartment + ", name=" + name
				+ ", description=" + description + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}

}
